//
// Created by Administrator on 2021/11/16.
// 统计文件中特定单词的出现次数

#include <iostream>
#include <fstream>
#include <string>

using namespace std;

int main()
{
    string target = "sdfse";
    string word;
    ifstream in("Word.txt");
    int count = 0;
    while(in >> word)
    {
        if(word == target)
        {
            ++count;
        }
    }
    cout << "the count is: " << count << endl;
}
